.PHONY:all
all:PthreadTest test

PthreadTest:PthreadTest.cpp
	g++ -o $@ $^ -std=c++11 -lpthread 
# -lpthread不带也可

test:test.cpp
	g++ -o $@ $^ -std=c++11

.PHONY:clean
clean:
	rm PthreadTest test